package com.alpha.eceasy.mall.api.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class SendEmailDTO implements Serializable{

    @Email(message = "邮箱格式错误")
    private String toEmail;

    @NotBlank(message = "用户名不能为空")
    private String username;
}
